home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
- /*
- *
- * This source code is CONFIDENTIAL and
- * PROPRIETARY to Algorithms Corporation. Unauthorized
- * distribution, adaptation or use may
- * be subject to civil and criminal penalties.
- *
- * Copyright (c) 1993 Algorithms Corporation
- * 3020 Liberty Hills Drive
- * Franklin, TN 37064
- *
- * ALL RIGHTS RESERVED.
- *
- *
- *
- */
-
-
-
- #include "generics.h"
-
-
- static int myThread(char *arg);
-
-
- main(int argc, char *argv[])
- {
- object t2;
-
- InitDynace(&argc);
-
- /* Start the threader. This also makes the the currently running
- main() function the first thread. */
-
- StartThreader(argc);
-
-
- t2 = gNewThread(Thread, "t2", myThread, DEFAULT_PRIORITY, "t2", 1, 0);
-
- myThread("main");
-
- gWaitFor(t2);
-
- return 0;
- }
-
-
- static int myThread(char *arg)
- {
- long i;
- object obj;
-
- obj = gNewWithLong(LongInteger, 0L);
- for (i=0L ; i++ != 1000L ; ) {
- gChangeLongValue(obj, i);
- gPrintValue(obj, stdoutStream);
- printf(" - %s\n", arg);
- }
- gDispose(obj);
- return 0;
- }
-
-
-
-
-
-
- /*
- *
- * This source code is CONFIDENTIAL and
- * PROPRIETARY to Algorithms Corporation. Unauthorized
- * distribution, adaptation or use may
- * be subject to civil and criminal penalties.
- *
- * Copyright (c) 1993 Algorithms Corporation
- * 3020 Liberty Hills Drive
- * Franklin, TN 37064
- *
- * ALL RIGHTS RESERVED.
- *
- *
- *
- */
-
-
-